package com.san.hkhospital.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * ClassName:ExamineExample
 * PackageName:com.san.hkhospital.entity
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 19:26
 * 
 */
 
 
public class ExamineExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ExamineExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andExaIdIsNull() {
            addCriterion("exa_id is null");
            return (Criteria) this;
        }

        public Criteria andExaIdIsNotNull() {
            addCriterion("exa_id is not null");
            return (Criteria) this;
        }

        public Criteria andExaIdEqualTo(Integer value) {
            addCriterion("exa_id =", value, "exaId");
            return (Criteria) this;
        }

        public Criteria andExaIdNotEqualTo(Integer value) {
            addCriterion("exa_id <>", value, "exaId");
            return (Criteria) this;
        }

        public Criteria andExaIdGreaterThan(Integer value) {
            addCriterion("exa_id >", value, "exaId");
            return (Criteria) this;
        }

        public Criteria andExaIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("exa_id >=", value, "exaId");
            return (Criteria) this;
        }

        public Criteria andExaIdLessThan(Integer value) {
            addCriterion("exa_id <", value, "exaId");
            return (Criteria) this;
        }

        public Criteria andExaIdLessThanOrEqualTo(Integer value) {
            addCriterion("exa_id <=", value, "exaId");
            return (Criteria) this;
        }

        public Criteria andExaIdIn(List<Integer> values) {
            addCriterion("exa_id in", values, "exaId");
            return (Criteria) this;
        }

        public Criteria andExaIdNotIn(List<Integer> values) {
            addCriterion("exa_id not in", values, "exaId");
            return (Criteria) this;
        }

        public Criteria andExaIdBetween(Integer value1, Integer value2) {
            addCriterion("exa_id between", value1, value2, "exaId");
            return (Criteria) this;
        }

        public Criteria andExaIdNotBetween(Integer value1, Integer value2) {
            addCriterion("exa_id not between", value1, value2, "exaId");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNull() {
            addCriterion("money is null");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNotNull() {
            addCriterion("money is not null");
            return (Criteria) this;
        }

        public Criteria andMoneyEqualTo(Long value) {
            addCriterion("money =", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotEqualTo(Long value) {
            addCriterion("money <>", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThan(Long value) {
            addCriterion("money >", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThanOrEqualTo(Long value) {
            addCriterion("money >=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThan(Long value) {
            addCriterion("money <", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThanOrEqualTo(Long value) {
            addCriterion("money <=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyIn(List<Long> values) {
            addCriterion("money in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotIn(List<Long> values) {
            addCriterion("money not in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyBetween(Long value1, Long value2) {
            addCriterion("money between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotBetween(Long value1, Long value2) {
            addCriterion("money not between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andExaTimeIsNull() {
            addCriterion("exa_time is null");
            return (Criteria) this;
        }

        public Criteria andExaTimeIsNotNull() {
            addCriterion("exa_time is not null");
            return (Criteria) this;
        }

        public Criteria andExaTimeEqualTo(Date value) {
            addCriterion("exa_time =", value, "exaTime");
            return (Criteria) this;
        }

        public Criteria andExaTimeNotEqualTo(Date value) {
            addCriterion("exa_time <>", value, "exaTime");
            return (Criteria) this;
        }

        public Criteria andExaTimeGreaterThan(Date value) {
            addCriterion("exa_time >", value, "exaTime");
            return (Criteria) this;
        }

        public Criteria andExaTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("exa_time >=", value, "exaTime");
            return (Criteria) this;
        }

        public Criteria andExaTimeLessThan(Date value) {
            addCriterion("exa_time <", value, "exaTime");
            return (Criteria) this;
        }

        public Criteria andExaTimeLessThanOrEqualTo(Date value) {
            addCriterion("exa_time <=", value, "exaTime");
            return (Criteria) this;
        }

        public Criteria andExaTimeIn(List<Date> values) {
            addCriterion("exa_time in", values, "exaTime");
            return (Criteria) this;
        }

        public Criteria andExaTimeNotIn(List<Date> values) {
            addCriterion("exa_time not in", values, "exaTime");
            return (Criteria) this;
        }

        public Criteria andExaTimeBetween(Date value1, Date value2) {
            addCriterion("exa_time between", value1, value2, "exaTime");
            return (Criteria) this;
        }

        public Criteria andExaTimeNotBetween(Date value1, Date value2) {
            addCriterion("exa_time not between", value1, value2, "exaTime");
            return (Criteria) this;
        }

        public Criteria andStateIdIsNull() {
            addCriterion("state_id is null");
            return (Criteria) this;
        }

        public Criteria andStateIdIsNotNull() {
            addCriterion("state_id is not null");
            return (Criteria) this;
        }

        public Criteria andStateIdEqualTo(Integer value) {
            addCriterion("state_id =", value, "stateId");
            return (Criteria) this;
        }

        public Criteria andStateIdNotEqualTo(Integer value) {
            addCriterion("state_id <>", value, "stateId");
            return (Criteria) this;
        }

        public Criteria andStateIdGreaterThan(Integer value) {
            addCriterion("state_id >", value, "stateId");
            return (Criteria) this;
        }

        public Criteria andStateIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("state_id >=", value, "stateId");
            return (Criteria) this;
        }

        public Criteria andStateIdLessThan(Integer value) {
            addCriterion("state_id <", value, "stateId");
            return (Criteria) this;
        }

        public Criteria andStateIdLessThanOrEqualTo(Integer value) {
            addCriterion("state_id <=", value, "stateId");
            return (Criteria) this;
        }

        public Criteria andStateIdIn(List<Integer> values) {
            addCriterion("state_id in", values, "stateId");
            return (Criteria) this;
        }

        public Criteria andStateIdNotIn(List<Integer> values) {
            addCriterion("state_id not in", values, "stateId");
            return (Criteria) this;
        }

        public Criteria andStateIdBetween(Integer value1, Integer value2) {
            addCriterion("state_id between", value1, value2, "stateId");
            return (Criteria) this;
        }

        public Criteria andStateIdNotBetween(Integer value1, Integer value2) {
            addCriterion("state_id not between", value1, value2, "stateId");
            return (Criteria) this;
        }

        public Criteria andOpIdIsNull() {
            addCriterion("op_id is null");
            return (Criteria) this;
        }

        public Criteria andOpIdIsNotNull() {
            addCriterion("op_id is not null");
            return (Criteria) this;
        }

        public Criteria andOpIdEqualTo(Integer value) {
            addCriterion("op_id =", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdNotEqualTo(Integer value) {
            addCriterion("op_id <>", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdGreaterThan(Integer value) {
            addCriterion("op_id >", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("op_id >=", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdLessThan(Integer value) {
            addCriterion("op_id <", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdLessThanOrEqualTo(Integer value) {
            addCriterion("op_id <=", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdIn(List<Integer> values) {
            addCriterion("op_id in", values, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdNotIn(List<Integer> values) {
            addCriterion("op_id not in", values, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdBetween(Integer value1, Integer value2) {
            addCriterion("op_id between", value1, value2, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdNotBetween(Integer value1, Integer value2) {
            addCriterion("op_id not between", value1, value2, "opId");
            return (Criteria) this;
        }

        public Criteria andExaitemIdIsNull() {
            addCriterion("exaitem_id is null");
            return (Criteria) this;
        }

        public Criteria andExaitemIdIsNotNull() {
            addCriterion("exaitem_id is not null");
            return (Criteria) this;
        }

        public Criteria andExaitemIdEqualTo(Integer value) {
            addCriterion("exaitem_id =", value, "exaitemId");
            return (Criteria) this;
        }

        public Criteria andExaitemIdNotEqualTo(Integer value) {
            addCriterion("exaitem_id <>", value, "exaitemId");
            return (Criteria) this;
        }

        public Criteria andExaitemIdGreaterThan(Integer value) {
            addCriterion("exaitem_id >", value, "exaitemId");
            return (Criteria) this;
        }

        public Criteria andExaitemIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("exaitem_id >=", value, "exaitemId");
            return (Criteria) this;
        }

        public Criteria andExaitemIdLessThan(Integer value) {
            addCriterion("exaitem_id <", value, "exaitemId");
            return (Criteria) this;
        }

        public Criteria andExaitemIdLessThanOrEqualTo(Integer value) {
            addCriterion("exaitem_id <=", value, "exaitemId");
            return (Criteria) this;
        }

        public Criteria andExaitemIdIn(List<Integer> values) {
            addCriterion("exaitem_id in", values, "exaitemId");
            return (Criteria) this;
        }

        public Criteria andExaitemIdNotIn(List<Integer> values) {
            addCriterion("exaitem_id not in", values, "exaitemId");
            return (Criteria) this;
        }

        public Criteria andExaitemIdBetween(Integer value1, Integer value2) {
            addCriterion("exaitem_id between", value1, value2, "exaitemId");
            return (Criteria) this;
        }

        public Criteria andExaitemIdNotBetween(Integer value1, Integer value2) {
            addCriterion("exaitem_id not between", value1, value2, "exaitemId");
            return (Criteria) this;
        }

        public Criteria andHpdIdIsNull() {
            addCriterion("hpd_id is null");
            return (Criteria) this;
        }

        public Criteria andHpdIdIsNotNull() {
            addCriterion("hpd_id is not null");
            return (Criteria) this;
        }

        public Criteria andHpdIdEqualTo(Integer value) {
            addCriterion("hpd_id =", value, "hpdId");
            return (Criteria) this;
        }

        public Criteria andHpdIdNotEqualTo(Integer value) {
            addCriterion("hpd_id <>", value, "hpdId");
            return (Criteria) this;
        }

        public Criteria andHpdIdGreaterThan(Integer value) {
            addCriterion("hpd_id >", value, "hpdId");
            return (Criteria) this;
        }

        public Criteria andHpdIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("hpd_id >=", value, "hpdId");
            return (Criteria) this;
        }

        public Criteria andHpdIdLessThan(Integer value) {
            addCriterion("hpd_id <", value, "hpdId");
            return (Criteria) this;
        }

        public Criteria andHpdIdLessThanOrEqualTo(Integer value) {
            addCriterion("hpd_id <=", value, "hpdId");
            return (Criteria) this;
        }

        public Criteria andHpdIdIn(List<Integer> values) {
            addCriterion("hpd_id in", values, "hpdId");
            return (Criteria) this;
        }

        public Criteria andHpdIdNotIn(List<Integer> values) {
            addCriterion("hpd_id not in", values, "hpdId");
            return (Criteria) this;
        }

        public Criteria andHpdIdBetween(Integer value1, Integer value2) {
            addCriterion("hpd_id between", value1, value2, "hpdId");
            return (Criteria) this;
        }

        public Criteria andHpdIdNotBetween(Integer value1, Integer value2) {
            addCriterion("hpd_id not between", value1, value2, "hpdId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}